package org.toycode.solr.config;

import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;

/**
 * This class depicts the property extractor of the type of the property of the
 * entity need to  be indexed and searched.
 *
 * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
 * @version 1.0.0.0, Aug 26, 2009
 */
final public class Extractor {

    /**
     * the property types the extractor could extract. 
     */
    @XmlElements(@XmlElement(name = "extractable-type"))
    public List<String> extractableTypes;
    /**
     * the extractor class for extracting these <code>types</code>.
     */
    @XmlAttribute(name = "class")
    public Class<?> clazz;
}
